* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    position: relative;
    width: 100%;
    height: 50px;
    background-color: skyblue;
}

h1 {
    text-align: center;
    line-height: 50px;
}

.meg {
    position: absolute;
    top: 0px;
    right: 50px;
    line-height: 50px;
}

.left {
    padding-top: 50px;
    float: left;
    background-color: rgb(159, 131, 156);
    width: 25%;
    height: 695px;
    text-align: center;
    cursor: pointer;
    color: #fff;
}

.left h2 {
    color: rgb(72, 69, 158);
}

ul {
    width: 100%;
    height: 100%;
}

ul li {
    line-height: 50px;
}

.er {
    display: none;
}

.active {
    background-color: rgb(97, 94, 94);
    color: aquamarine;
}

.right1 {
    float: right;
    position: relative;
    /* overflow: hidden; */
    width: 75%;
}

.right2 {
    float: right;
    width: 75%;
}

.right1::after {
    content: '';
    display: block;
    clear: both;
}

.chakan_y,
.add_y,
.chakan_x,
.add_x {
    float: right;
    width: 100%;
    height: 695px;
    background-color: orange;
}

.add_y,
.chakan_x,
.add_x {
    display: none;
}

/* 查看老师 */
.search {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 500px;
    height: auto;
}

#ser {
    width: 400px;
    height: 50px;
    background-color: aqua;
}

#serbtn {
    margin-left: -70px;
}

#tab,
#tab_ser {
    width: 80%;
    height: auto;
    border: 1px solid #000;
    border-collapse: collapse;
    margin: 0 auto;
    margin-top: 100px;
}

#tab_ser {
    margin-top: 50px;
}

#tab tr,
#add_tab tr,
#tab_ser tr {
    height: 40px;
}

#tab tr td,
#add_tab tr td,
#tab_ser tr td {
    border: 1px solid #000;
    text-align: center;
}

img {
    display: inline-block;
    width: 60px;
    height: 60px;
}

#add_tab {
    width: 80%;
    border-collapse: collapse;
    margin: 0 auto;
    margin-top: 50px;
}

#add_tab tr td input {
    display: inline-block;
    width: 100%;
    height: 40px;
}

.btn {
    width: 60px;
    height: 40px;
}

a {
    cursor: pointer;
}

label {
    width: 150px;
    text-align: right;
    margin-right: 15px;
    font-size: 30px;
}

form {
    text-align: center;
}

input {
    display: inline-block;
    height: 30px;
    background-color: skyblue;
    border-radius: 10px;
}

#add {
    margin-right: 40px;
    width: 80px;
}

#clear {
    width: 80px;
}

.chakan_x {
    position: relative;
}

/* 修改员工的盒子 */
.update_con,
.update_con_xw,
.search_news_con {
    display: none;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    /* overflow: hidden; */
    background-color: rgba(0, 0, 0, .5);
}

#ulNews>:nth-child(odd) {
    background-color: rgb(49, 65, 65);
}

#ulNews>:nth-child(even) {
    background-color: rgb(83, 86, 86);
}

#ulNews li span {
    color: #fff;
}

#upd_title {
    display: inline-block;
    height: 35px;
    width: 200px;
}

.update_con_xw textarea {
    background-color: skyblue;
}

#upd,
#upd_xw,
#search_news_con {
    padding-top: 10px;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    width: 60%;
    height: 80%;
    background-color: rgb(123, 123, 129)
}

#ulNews {
    margin-top: 50px;
    position: relative;
}

#ulNews a {
    color: #fff;
    font-size: 18px;
}

#ulNews a:hover {
    color: red;
}

#ulNews span {
    position: absolute;
    right: 0;
}

.guanbi,
.guanbi_ser,
.guanbi2,
.guanbi3 {
    cursor: pointer;
    position: absolute;
    display: block;
    top: 10px;
    right: 5px;
    background-color: rgb(87, 39, 10);
    color: red;
    padding: 10px;
}

/* 搜索框 */
.search_con {
    display: none;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
}

.ser_con {
    padding-top: 10px;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    width: 60%;
    height: 80%;
    background-color: rgb(123, 123, 129)
}

/* 提示框 */
#add_success {
    display: none;
    position: absolute;
    top: 360px;
    left: 800px;
}

#add_success strong {
    font-size: 30px;
}

/* 新闻 */
.chakan_x {
    position: relative;
}

.top {
    padding-left: 65px;
    width: 100%;
    background-color: blueviolet;
    color: #fff;
}

.top span {
    font-size: 40px;
}

.top>:nth-child(2) {
    position: absolute;
    right: 240px;
}

.top>:nth-child(3) {
    position: absolute;
    right: 50px;
}

#xw_con {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

#xw_con li {
    padding-left: 30px;
    list-style: none;
}

#xw_con li span {
    right: 200px;
    position: absolute;
}

.xw_update {
    position: absolute;
    right: 100px;
    width: 80px;
    height: 50px;
    background-color: rgb(65, 65, 195);
    color: #fff;
}

.xw_del {
    position: absolute;
    right: 15px;
    width: 80px;
    height: 50px;
    background-color: red;
    color: #fff;
}

.xw_del:hover,
.xw_update:hover {
    background-color: rgb(20, 227, 51);
}

#xw_con li a {
    text-decoration: none;
    font-size: 25px;
    color: rgb(35, 35, 53);
}

#xw_con li:hover {
    background-color: rgb(114, 112, 112);
}

#xw_con li:hover>a {
    color: #fff;
}

.addNewsCon {
    width: 80%;
    /* transform: translateX(-50%); */
    text-align: center;
    margin: 0 auto;
}

.addNewsCon label {
    text-align: right;
    width: 300px;
    font-size: 25px;
}

#x_text {
    background-color: skyblue;
    margin-top: 80px;
}

#add_xinwen,
#clear_xinwen {
    width: 100px;
    height: 50px;
    line-height: 35px;
    text-align: center;
}

#upd_xinwen,
#clear_text {
    width: 100px;
    text-align: center;
    height: 60px;

}

/* 搜索 */
/* .chakan_x {
    position: relative;
} */

.search_xw {
    position: absolute;
    width: 500px;
    height: 50px;
    top: 10px;
    left: 50%;
    transform: translateX(-300px);
    background-color: rgb(138, 138, 211);
}

.search_xw label {
    width: auto;
}

#search_news {
    position: absolute;
    top: 6px;
    right: 0;
}

#tab>:nth-child(even) {
    background-color: gray;
}

#tab>:nth-child(odd) {
    background-color: rgb(230, 225, 225);
}

#tab>:nth-child(1) {
    background-color: rgb(177, 114, 173);
}

#tab tr td {
    border: 0;
}

.chakan_y,
.add_y {
    background-color: rgb(81, 72, 72);
}

#add_tab label {
    color: #fff;
}